cmake_minimum_required(VERSION 3.10)

include_directories(${CMAKE_SOURCE_DIR}/common/utils)
include_directories(${CMAKE_SOURCE_DIR}/hal/video)
include_directories(${CMAKE_SOURCE_DIR}/services/ui)
include_directories(${CMAKE_SOURCE_DIR}/services/service_base)
include_directories(${CMAKE_SOURCE_DIR}/services/ai_service)
include_directories(${CMAKE_SOURCE_DIR}/${LGVL_ROOT}/include)
include_directories(${CMAKE_SOURCE_DIR}/services/ai_service/rknpu_src)
include_directories(${CMAKE_SOURCE_DIR}/services/ai_service/rknpu_src/utils)
include_directories(${CMAKE_SOURCE_DIR}/services/recordserver)
include_directories(${CMAKE_SOURCE_DIR}/${RKNN_ROOT}/include)
link_directories(${CMAKE_SOURCE_DIR}/${LGVL_ROOT}/lib)
link_directories(${CMAKE_SOURCE_DIR}/${LIBJPEGTURBO_ROOT}/lib)
link_directories(${CMAKE_SOURCE_DIR}/${LIBPNG_ROOT}/lib)
link_directories(${CMAKE_SOURCE_DIR}/${ZLIB_ROOT}/lib)
link_directories(${CMAKE_SOURCE_DIR}/${LIBYUV_ROOT}/lib)
link_directories(${CMAKE_SOURCE_DIR}/${RKNN_ROOT}/lib)
link_directories(${CMAKE_SOURCE_DIR}/${RKRGA_ROOT}/lib)

add_executable(snakyrun
    snakyrun.cpp
    )

target_link_libraries(snakyrun
    utils
)

add_executable(snakystep
        snakystep.cpp
        SnakyMediaRun.cpp
        SnakyMediaRun.h
)

target_link_libraries(snakystep
        cm-video
        service-ui
        cm-ai-service
        service-recordserver
        servicebase
        cm-storage
        jkfuncs
        cm-config
        third_jsoncpp
        utils
        rknnrt
        rga
        lvgl_demos
        lvgl lvgl_thorvg
        turbojpeg jpeg png zlib
        pthread
)
